//
//  GAKKIBaseImageView.m
//  GANGAIKit
//
//  Created by fh on 2019/11/6.
//  Copyright © 2019 cashchina. All rights reserved.
//

#import "GAKKIBaseImageView.h"

@implementation GAKKIBaseImageView
- (void)dealloc {
    if (kDebugViewRelease) {
#ifdef DEBUG
        DBLog(@"\n ----------- 图片 %@ 销毁了 ----------- \n",[self class]);
#endif
    }
}

+ (GAKKIBaseImageView *)gakki_makeImageView:(void (^)(GAKKIBaseImageView * _Nonnull))block {
    GAKKIBaseImageView *imageView = [GAKKIBaseImageView new];
    if (block) {
        block(imageView);
    }
    return imageView;
}

- (GAKKIImageViewFrame)gakki_frame {
    return ^(CGRect frame) {
        self.frame = frame;
        return self;
    };
}
- (GAKKIImageViewBackgroundColor)gakki_backgroundColor {
    return ^(UIColor * __nullable backgroundColor) {
        self.backgroundColor = backgroundColor;
        return self;
    };
}
- (GAKKIImageViewImage)gakki_image {
    return ^(UIImage * __nullable image) {
        self.image = image;
        return self;
    };
}
- (GAKKIImageViewImage)gakki_highlightedImage {
    return ^(UIImage * __nullable highlightedImage) {
        self.highlightedImage = highlightedImage;
        return self;
    };
}

@end
